package online.chazi.bootplus.biz.utils;

/**
 * 说明：作者很懒，什么都没留下
 * Created by 叉子同学 on 2020-04-11 18:33
 */
public enum SimpleBizReplyCode implements IReplyCode<SimpleBizReplyCode> {

    SUCCESS(0, "OK"),
    ERROR(-1, "ERROR");

    int code;
    String message;

    SimpleBizReplyCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public SimpleBizReplyCode SUCCESS() {
        return SUCCESS;
    }

    @Override
    public SimpleBizReplyCode ERROR() {
        return ERROR;
    }

}
